/**   
 * @Title: StopLotteryListCommunicater.java 
 * @Package com.esun.rabbit2.communicaters 
 * @Description: 停售彩种列表获取接口 
 * @author: Billy Qigs@500wan.com   
 * @date: 2012-3-23 下午3:11:53  
 * Copyright: (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.rabbit2.communicaters;

import java.util.ArrayList;
import java.util.HashMap;

import com.esun.config.BussinessCode;
import com.esun.config.DistributionChannels;
import com.esun.config.Key;
import com.esun.model.UserInfo;
import com.esun.network.ServerCommunicater;
import com.esun.util.HashMapUtil;

/**
 * @ClassName: StopLotteryListCommunicater
 * @Description: 停售彩种列表获取接口
 * @author: Billy Qigs@500wan.com
 * @date: 2012-3-23 下午3:11:53
 * 
 */
public class StopLotteryListCommunicater extends ServerCommunicater {

	public boolean getStopLotteryList() throws Exception {

		boolean isSucceed = true;

		ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();

		list.add(HashMapUtil.getMapItem(BussinessCode.PASER_MID, BussinessCode.MID_LOTTERY_STOP_LOTID));
		list.add(HashMapUtil.getMapItem(BussinessCode.PASER_CK, UserInfo.getUserInfo().getUserSession()));
		list.add(HashMapUtil.getMapItem(Key.KEY_CHANNEL, DistributionChannels.QUDAO));

		super.getServerResponse(list, true);

		if (super.getState() != 100) {
			isSucceed = false;
		}

		return isSucceed;

	}

}
